/**
 *
 * @param ctx
 * @returns {*|state|null|"installing"|"installed"|"activating"}
 */
exports.getAuthorId = ctx => {
  return (ctx && ctx.state && ctx.state.author && ctx.state.author.id) || null;
};
